<div id="hp_intro"><%= @page_title %></div>
<p>
<% form_tag(documents_searches_path, :method => 'get') do %>
<table cellpadding="0" cellspacing="0">
<tr>
	<td valign="middle"><%= text_field_tag "q", params[:q] %></td>
	<td valign="middle" style="padding-left:5px;"><%= submit_tag t('searches.new.submit'), :class => "yellow_button" %></td>
</tr>
</table>
<% end %>
<p>
<% if @documents %>
	<%= render :partial => "nav" %>
<% end %>
<% if not @documents %>
<% elsif @documents.empty? %>
	<%= t('briefing.search.empty') %>
<% else %>
	<% if @document_results.total_hits > 15 %>
	<%= will_paginate WillPaginate::Collection.new((params[:page]||1),(15),@document_results.total_hits) -%>
	<p>
	<% end %>
	<% for document in @documents %>
		<%= render :partial => "documents/show_full", :locals => {:document => document, :quality => nil, :revision => nil}%>
	<% end %>

	<p>
	<%= will_paginate WillPaginate::Collection.new((params[:page]||1),(15),@document_results.total_hits) -%>
<% end %>
